package com.nidu.demo.dept.dto;

import com.nidu.demo.base.BaseCO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 部门树客户端对象
 *
 * @author auto
 */
@Data
@Schema(description = "部门树客户端对象")
@EqualsAndHashCode(callSuper = true)
public class DepartmentTreeCO extends BaseCO {
    /**
     * 主键ID
     */
    @Schema(description = "主键ID", example = "1")
    private Long id;

    /**
     * 部门名称
     */
    @Schema(description = "部门名称", example = "技术部")
    private String deptName;

    /**
     * 部门编码
     */
    @Schema(description = "部门编码", example = "tech")
    private String deptCode;

    /**
     * 父部门ID
     */
    @Schema(description = "父部门ID", example = "0")
    private Long parentId;

    /**
     * 祖级列表
     */
    @Schema(description = "组级列表", example = "0,1,2")
    private String ancestors;

    /**
     * 部门领导人ID
     */
    @Schema(description = "部门领导人ID", example = "1")
    private Long leader;

    /**
     * 部门领导人姓名
     */
    @Schema(description = "部门领导人姓名", example = "张三")
    private String leaderName;

    /**
     * 部门联系电话
     */
    @Schema(description = "部门联系电话", example = "13800138000")
    private String phoneNumber;

    /**
     * 部门邮件
     */
    @Schema(description = "部门邮件", example = "tech@company.com")
    private String email;

    /**
     * 公司ID
     */
    @Schema(description = "公司ID", example = "1")
    private Long companyId;

    /**
     * 描述
     */
    @Schema(description = "描述", example = "这是一个技术部门")
    private String remark;

    /**
     * 排序号
     */
    @Schema(description = "排序号", example = "0")
    private Integer sortOrder;

    /**
     * 状态
     */
    @Schema(description = "状态(0:禁用,1:启用)", example = "1")
    private Integer status;

    /**
     * 子部门列表
     */
    @Schema(description = "子部门列表")
    private List<DepartmentTreeCO> children;
}